b = [[1, 2], [3, 4]]


for i in range(len(b)):
    for j in range(len(b[i])):
        print(b[i][j], end=" ")
        print()
